ENABLE OBJECT ZWRITE
This command will enable the Z write state of the object.
ENABLE OBJECT ZWRITE Object Number
Object Number
Integer
Specify an object number between 1 and 2415919103.
This command does not return a value.
The Z write state controls whether each pixel of the rendered object writes into the Z depth buffer. The default value is enabled, where the object writes pixels to the Z buffer only when a pixel of the object is successfully rendered to the screen.
set display mode 800,600,32
cls
make object sphere 1,20
ENABLE OBJECT ZWRITE 1
do
loop
end
BASIC3D Commands Menu
Index